package com.example.demoview;

import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class GkData {

    public Map User_Data() {

        //List<Map> data_gk = new ArrayList<>();
        Map data_gk_map = new HashMap();
        List<Map> data_gk_map_detail = new ArrayList<>();
        Map data_gk_map_detail_map = new HashMap();
        //用户
        data_gk_map.put("title","用户");
        data_gk_map.put("total","11223");

        data_gk_map_detail_map.put("type","day");
        data_gk_map_detail_map.put("text1","今日");
        data_gk_map_detail_map.put("val1","1");
        data_gk_map_detail_map.put("text2","昨日");
        data_gk_map_detail_map.put("val2","2");
        data_gk_map_detail.add(data_gk_map_detail_map);

        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","week");
        data_gk_map_detail_map.put("text1","本月");
        data_gk_map_detail_map.put("val1","3");
        data_gk_map_detail_map.put("text2","上周");
        data_gk_map_detail_map.put("val2","4");
        data_gk_map_detail.add(data_gk_map_detail_map);

        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","month");
        data_gk_map_detail_map.put("text1","本周");
        data_gk_map_detail_map.put("val1","5");
        data_gk_map_detail_map.put("text2","上月");
        data_gk_map_detail_map.put("val2","6");
        data_gk_map_detail.add(data_gk_map_detail_map);


        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","year");
        data_gk_map_detail_map.put("text1","今年");
        data_gk_map_detail_map.put("val1","7");
        data_gk_map_detail_map.put("text2","上年");
        data_gk_map_detail_map.put("val2","8");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map.put("detail",data_gk_map_detail);
        //data_gk.add(data_gk_map);

        return data_gk_map;

    }


    public Map MemberData() {

        Map data_gk_map = new HashMap();
        List<Map> data_gk_map_detail = new ArrayList<>();
        Map data_gk_map_detail_map = new HashMap();

        //会员
        data_gk_map.put("title","会员");
        data_gk_map.put("total","8972");
        data_gk_map_detail_map.put("type","day");
        data_gk_map_detail_map.put("text1","今日");
        data_gk_map_detail_map.put("val1","1");
        data_gk_map_detail_map.put("text2","昨日");
        data_gk_map_detail_map.put("val2","2");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","week");
        data_gk_map_detail_map.put("text1","本月");
        data_gk_map_detail_map.put("val1","3");
        data_gk_map_detail_map.put("text2","上周");
        data_gk_map_detail_map.put("val2","4");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","month");
        data_gk_map_detail_map.put("text1","本周");
        data_gk_map_detail_map.put("val1","5");
        data_gk_map_detail_map.put("text2","上月");
        data_gk_map_detail_map.put("val2","6");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","year");
        data_gk_map_detail_map.put("text1","今年");
        data_gk_map_detail_map.put("val1","7");
        data_gk_map_detail_map.put("text2","上年");
        data_gk_map_detail_map.put("val2","8");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map.put("detail",data_gk_map_detail);


        return data_gk_map;
    }

    public Map LcData() {

        Map data_gk_map = new HashMap();
        List<Map> data_gk_map_detail = new ArrayList<>();
        Map data_gk_map_detail_map = new HashMap();

        //量测
        data_gk_map.put("title","量测");
        data_gk_map.put("total","8972");
        data_gk_map_detail_map.put("type","day");
        data_gk_map_detail_map.put("text1","今日");
        data_gk_map_detail_map.put("val1","1");
        data_gk_map_detail_map.put("text2","昨日");
        data_gk_map_detail_map.put("val2","2");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","week");
        data_gk_map_detail_map.put("text1","本月");
        data_gk_map_detail_map.put("val1","3");
        data_gk_map_detail_map.put("text2","上周");
        data_gk_map_detail_map.put("val2","4");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","month");
        data_gk_map_detail_map.put("text1","本周");
        data_gk_map_detail_map.put("val1","5");
        data_gk_map_detail_map.put("text2","上月");
        data_gk_map_detail_map.put("val2","6");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","year");
        data_gk_map_detail_map.put("text1","今年");
        data_gk_map_detail_map.put("val1","7");
        data_gk_map_detail_map.put("text2","上年");
        data_gk_map_detail_map.put("val2","8");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map.put("detail",data_gk_map_detail);

        return data_gk_map;
    }

    public Map LcYjData() {

        Map data_gk_map = new HashMap();
        List<Map> data_gk_map_detail = new ArrayList<>();
        Map data_gk_map_detail_map = new HashMap();

        //量测预警
        data_gk_map.put("title","量测预警");
        data_gk_map.put("total","8972");
        data_gk_map_detail_map.put("type","day");
        data_gk_map_detail_map.put("text1","今日");
        data_gk_map_detail_map.put("val1","1");
        data_gk_map_detail_map.put("text2","昨日");
        data_gk_map_detail_map.put("val2","2");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","week");
        data_gk_map_detail_map.put("text1","本月");
        data_gk_map_detail_map.put("val1","3");
        data_gk_map_detail_map.put("text2","上周");
        data_gk_map_detail_map.put("val2","4");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","month");
        data_gk_map_detail_map.put("text1","本周");
        data_gk_map_detail_map.put("val1","5");
        data_gk_map_detail_map.put("text2","上月");
        data_gk_map_detail_map.put("val2","6");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","year");
        data_gk_map_detail_map.put("text1","今年");
        data_gk_map_detail_map.put("val1","7");
        data_gk_map_detail_map.put("text2","上年");
        data_gk_map_detail_map.put("val2","8");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map.put("detail",data_gk_map_detail);

        return data_gk_map;
    }

    public Map DoctorData() {

        Map data_gk_map = new HashMap();
        List<Map> data_gk_map_detail = new ArrayList<>();
        Map data_gk_map_detail_map = new HashMap();

        //医生
        data_gk_map.put("title","医生");
        data_gk_map.put("total","8972");
        data_gk_map_detail_map.put("type","day");
        data_gk_map_detail_map.put("text1","今日");
        data_gk_map_detail_map.put("val1","1");
        data_gk_map_detail_map.put("text2","昨日");
        data_gk_map_detail_map.put("val2","2");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","week");
        data_gk_map_detail_map.put("text1","本月");
        data_gk_map_detail_map.put("val1","3");
        data_gk_map_detail_map.put("text2","上周");
        data_gk_map_detail_map.put("val2","4");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","month");
        data_gk_map_detail_map.put("text1","本周");
        data_gk_map_detail_map.put("val1","5");
        data_gk_map_detail_map.put("text2","上月");
        data_gk_map_detail_map.put("val2","6");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","year");
        data_gk_map_detail_map.put("text1","今年");
        data_gk_map_detail_map.put("val1","7");
        data_gk_map_detail_map.put("text2","上年");
        data_gk_map_detail_map.put("val2","8");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map.put("detail",data_gk_map_detail);

        return data_gk_map;
    }

    public Map DoctorSigningData() {

        Map data_gk_map = new HashMap();
        List<Map> data_gk_map_detail = new ArrayList<>();
        Map data_gk_map_detail_map = new HashMap();

        //医生签约
        data_gk_map.put("title","医生签约");
        data_gk_map.put("total","8972");
        data_gk_map_detail_map.put("type","day");
        data_gk_map_detail_map.put("text1","今日");
        data_gk_map_detail_map.put("val1","1");
        data_gk_map_detail_map.put("text2","昨日");
        data_gk_map_detail_map.put("val2","2");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","week");
        data_gk_map_detail_map.put("text1","本月");
        data_gk_map_detail_map.put("val1","3");
        data_gk_map_detail_map.put("text2","上周");
        data_gk_map_detail_map.put("val2","4");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","month");
        data_gk_map_detail_map.put("text1","本周");
        data_gk_map_detail_map.put("val1","5");
        data_gk_map_detail_map.put("text2","上月");
        data_gk_map_detail_map.put("val2","6");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","year");
        data_gk_map_detail_map.put("text1","今年");
        data_gk_map_detail_map.put("val1","7");
        data_gk_map_detail_map.put("text2","上年");
        data_gk_map_detail_map.put("val2","8");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map.put("detail",data_gk_map_detail);

        return data_gk_map;
    }

    public Map VisitData() {


        Map data_gk_map = new HashMap();
        List<Map> data_gk_map_detail = new ArrayList<>();
        Map data_gk_map_detail_map = new HashMap();

        //回访
        data_gk_map.put("title","回访");
        data_gk_map.put("total","8972");
        data_gk_map_detail_map.put("type","day");
        data_gk_map_detail_map.put("text1","今日");
        data_gk_map_detail_map.put("val1","1");
        data_gk_map_detail_map.put("text2","昨日");
        data_gk_map_detail_map.put("val2","2");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","week");
        data_gk_map_detail_map.put("text1","本月");
        data_gk_map_detail_map.put("val1","3");
        data_gk_map_detail_map.put("text2","上周");
        data_gk_map_detail_map.put("val2","4");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","month");
        data_gk_map_detail_map.put("text1","本周");
        data_gk_map_detail_map.put("val1","5");
        data_gk_map_detail_map.put("text2","上月");
        data_gk_map_detail_map.put("val2","6");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","year");
        data_gk_map_detail_map.put("text1","今年");
        data_gk_map_detail_map.put("val1","7");
        data_gk_map_detail_map.put("text2","上年");
        data_gk_map_detail_map.put("val2","8");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map.put("detail",data_gk_map_detail);

        return data_gk_map;
    }

    public Map FreeClinicData() {

        //List<Map> data_gk = new ArrayList<>();
        Map data_gk_map = new HashMap();
        List<Map> data_gk_map_detail = new ArrayList<>();
        Map data_gk_map_detail_map = new HashMap();

        //义诊
        data_gk_map.put("title","义诊");
        data_gk_map.put("total","8972");
        data_gk_map_detail_map.put("type","day");
        data_gk_map_detail_map.put("text1","今日");
        data_gk_map_detail_map.put("val1","1");
        data_gk_map_detail_map.put("text2","昨日");
        data_gk_map_detail_map.put("val2","2");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","week");
        data_gk_map_detail_map.put("text1","本月");
        data_gk_map_detail_map.put("val1","3");
        data_gk_map_detail_map.put("text2","上周");
        data_gk_map_detail_map.put("val2","4");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","month");
        data_gk_map_detail_map.put("text1","本周");
        data_gk_map_detail_map.put("val1","5");
        data_gk_map_detail_map.put("text2","上月");
        data_gk_map_detail_map.put("val2","6");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map_detail_map.clear();
        data_gk_map_detail_map.put("type","year");
        data_gk_map_detail_map.put("text1","今年");
        data_gk_map_detail_map.put("val1","7");
        data_gk_map_detail_map.put("text2","上年");
        data_gk_map_detail_map.put("val2","8");
        data_gk_map_detail.add(data_gk_map_detail_map);
        data_gk_map.put("detail",data_gk_map_detail);
        //data_gk.add(data_gk_map);
        return data_gk_map;
    }

    public List<Map> DataGkData() {

        List<Map> data_gk = new ArrayList<>();
        Map fcd =FreeClinicData();
        data_gk.add(fcd);
        Map vd = VisitData();
        data_gk.add(vd);
        Map dsd =DoctorSigningData();
        data_gk.add(dsd);
        Map dd =DoctorData();
        data_gk.add(dd);
        Map lyd =LcYjData();
        data_gk.add(lyd);
        Map ld =LcData();
        data_gk.add(ld);
        Map md = MemberData();
        data_gk.add(md);
        Map ud = User_Data();
        data_gk.add(ud);
        return data_gk;
    }

    public Map JcyltDetailDataXY(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text1","血压");
        data_jcylt_detail_map.put("val1","111");
        return data_jcylt_detail_map;

    }

    public Map JcyltDetailDataXT(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text1","血糖");
        data_jcylt_detail_map.put("val1","112");
        return data_jcylt_detail_map;

    }

    public Map JcyltDetailDataXD(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text1","心电");
        data_jcylt_detail_map.put("val1","5111");
        return data_jcylt_detail_map;

    }

    public Map JcyltDetailDataXYa(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text1","血氧");
        data_jcylt_detail_map.put("val1","7");
        return data_jcylt_detail_map;

    }

    public Map JcyltDetailDataNS(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text1","尿酸");
        data_jcylt_detail_map.put("val1","8");
        return data_jcylt_detail_map;

    }

    public Map JcyltDetailDataZDGC(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text1","总胆固醇");
        data_jcylt_detail_map.put("val1","9");
        return data_jcylt_detail_map;

    }

    public Map YdyltDetailDataXY(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text1","血压");
        data_jcylt_detail_map.put("val1","111");
        return data_jcylt_detail_map;

    }

    public Map YdyltDetailDataXT(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text1","血糖");
        data_jcylt_detail_map.put("val1","112");
        return data_jcylt_detail_map;

    }

    public Map YdyltDetailDataXD(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text1","心电");
        data_jcylt_detail_map.put("val1","5111");
        return data_jcylt_detail_map;

    }

    public Map YdyltDetailDataXYa(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text1","血氧");
        data_jcylt_detail_map.put("val1","7");
        return data_jcylt_detail_map;

    }

    public Map YdyltDetailDataNS(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text1","尿酸");
        data_jcylt_detail_map.put("val1","8");
        return data_jcylt_detail_map;

    }

    public Map YdyltDetailDataZDGC(){

        Map data_jcylt_detail_map = new HashMap();
        data_jcylt_detail_map.put("text1","总胆固醇");
        data_jcylt_detail_map.put("val1","9");
        return data_jcylt_detail_map;

    }


    public Map DataGk() {


        Map data_ysz = new HashMap();
        data_ysz.put("title","乡村医生站");
        data_ysz.put("total","1122");
        Map data_cm = new HashMap();
        data_cm.put("title","村民");
        data_cm.put("total","221");

        List<Map> data_jcylt_detail = new ArrayList<>();
        Map jcylt_data_XY = JcyltDetailDataXY();
        data_jcylt_detail.add(jcylt_data_XY);
        Map jcylt_data_XT = JcyltDetailDataXT();
        data_jcylt_detail.add(jcylt_data_XT);
        Map jcylt_data_XD = JcyltDetailDataXD();
        data_jcylt_detail.add(jcylt_data_XD);
        Map jcylt_data_XYa = JcyltDetailDataXYa();
        data_jcylt_detail.add(jcylt_data_XYa);
        Map jcylt_data_NS = JcyltDetailDataNS();
        data_jcylt_detail.add(jcylt_data_NS);
        Map jcylt_data_ZDGC = JcyltDetailDataZDGC();
        data_jcylt_detail.add(jcylt_data_ZDGC);
        Map data_jcylt = new HashMap();
        data_jcylt.put("title","江城医联体");
        data_jcylt.put("total","222");
        data_jcylt.put("detail",data_jcylt_detail);



        List<Map> data_ydylt_detail = new ArrayList<>();
        Map ydylt_data_XY = YdyltDetailDataXY();
        data_ydylt_detail.add(ydylt_data_XY);
        Map ydylt_data_XT = YdyltDetailDataXT();
        data_ydylt_detail.add(ydylt_data_XT);
        Map ydylt_data_XD = YdyltDetailDataXD();
        data_ydylt_detail.add(ydylt_data_XD);
        Map ydylt_data_XYa = YdyltDetailDataXYa();
        data_ydylt_detail.add(ydylt_data_XYa);
        Map ydylt_data_NS = YdyltDetailDataNS();
        data_ydylt_detail.add(ydylt_data_NS);
        Map ydylt_data_ZDGC = YdyltDetailDataZDGC();
        data_ydylt_detail.add(ydylt_data_ZDGC);
        Map data_ydylt = new HashMap();
        data_ydylt.put("title","阳东医联体");
        data_ydylt.put("total","221");
        data_ydylt.put("detail",data_ydylt_detail);


        Map data = new HashMap();
        data.put("data_ysz",data_ysz);
        data.put("data_cm",data_cm);
        data.put("data_jcylt",data_jcylt);
        data.put("data_ydylt",data_ydylt);
        List<Map> data_gk = DataGkData();
        data.put("data_gk",data_gk);

        Map rejson = new HashMap();
        rejson.put("code",0);
        rejson.put("data",data);
        return rejson;
    }

}
